package com.itheima.entity;

import com.itheima.vo.contentVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class YddCate {
    private int id;
    private String cateName;
    private String icon;
    private int sortNum;
    private String defaultData;

    public contentVO getCateVO(){
        contentVO  cvo = new contentVO();
        cvo.setId(id);
        cvo.setCatename(cateName);
        cvo.setIcon(icon);
        cvo.setSort_num(sortNum);
        cvo.setDefault_data(defaultData);
        return cvo;
    }
}
